package cn.luecc;

//import javax.transaction.Transaction;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import cn.luecc.vo.User;
import org.hibernate.Transaction;

public class Base {
/*	public static void main(String[] args)
	{
		Configuration cfg = new Configuration();
		cfg.configure();
		SessionFactory sf = cfg.buildSessionFactory();
		
		Session s = sf.openSession();
		Transaction ts = s.beginTransaction();
		User user = new User();
		user.setEmailadd("872032249@qq.com");
		user.setPassword("123456Abc");
		user.setUsername("leoliuqin");
		
		s.save(user);
		ts.commit();
		s.close();
		System.out.println("hibernate test over");
		
	}*/

}
